<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/11/22
 * Time: 14:54
 */

namespace app\admin\validate;

use think\Validate;

/**
 * Class Category
 * @package app\admin\validate
 * 分类管理验证器
 */
class Category extends Validate
{
    protected $rule = [
        'cname'  => 'require',
        'csort' => 'require',
    ];

    protected $message = [
        'cname.require'  => '请填写分类名称',
        'csort.require'  => '请排序',
    ];
}